package de.fhhof.vinf.ssp.ticketcenter.servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class Tests
 */
public class Tests extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public Tests() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter out = response.getWriter();
		out.write("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> ");
		out.write("<html xmlns='http://www.w3.org/1999/xhtml'>");
			out.write("<head>");
			out.write("<meta http-equiv='Content-Type' content='text/html' charset='iso-8859-1' />");
			out.write("<title>Studienarbeit SSP in Java</title>");
			out.write("<link rel='stylesheet' type='text/css' href='../css/bsp.css' />");
			out.write("</head>");

			out.write("<body>");

				out.write("<div id='wrapper'>");
				
					out.write("<div id='outheader'>");
						out.write("	<div id='inheader'>");
						
							out.write("<h1>Header</h1>");
							
						out.write("	</div>");
					out.write("	</div>");
					
				out.write("<div id='outleftcolumnsmall'>");
						out.write("<div id='inleftcolumn'>");
						
						out.write("</div>");
				out.write("</div>");
				
				
				out.write("<div id='outrightcolumn'>");
						out.write("<div id='inrightcolumn'>");
						out.write("	 <ul>");
						out.write("<li>Login / User</li>");
						out.write("	<li>Inhaltsverzeichnis</li>");
						out.write("	</ul> -->");
						out.write("<br/><br/><hr/>");
							out.write("<div id='inhalt'>");
								out.write("<h2>Inhalt</h2><br/>");
								out.write("<a href='/Studienarbeit2011/jsp/index.jsp'>Startseite</a><br/>");
								out.write("<a href='/Studienarbeit2011/jsp/index.jsp?site=register'>Registrierung</a><br/>");
								out.write("<a href='.'>Platzhalter</a><br/>");
							out.write("</div>");
							
						out.write("	</div>");
					out.write("</div>");
					
					
				out.write("<div id='outimpressum'>");
					out.write("<div id='inimpressum'>Impressum</div>");
					
					out.write("</div>");
				out.write("</div>");
		
				out.write("		</body>");
		out.write("	</html>");
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
